[#ftl]
[#assign entityName="GoodsClassify"]
[#assign pathRoot="/admin/ec/classify/classify_"]

[@jsec.authPage perms=["${entityName}search"]/]
[#assign prms=jweb.params("prm")]
[@frame.root]
  <!-- Default panel contents -->
  [@frame.title]商品分类[/@]
  [@frame.searchForm id="search" prms=prms.ogin]
       [@frame.input id="prm.code$like" label="编号"/]
       [@frame.input id="prm.name$like" label="名称"/]
       [@frame.select id="prm.classifyType.id" label="名称" datas=jdao.hql("from GoodsClassifyType")() value="id" title="label"/]
    [/@]
    [@jsec.authBlock perms=["${entityName}ctrl"]]
  [@frame.toolsBar]
    [@frame.toolsBtn class="btn-success" href="${base}${pathRoot}form.shtml" icon="fa-plus"/]
  [/@]
  [/@]
    
    [#assign datas=frame.createHql(entityName)()]
    
  [@table.table id="block" datas=datas prms=prms.url]
    [@table.box path="id"/]
    [@table.text path="code" name="编号"/]
    [@table.text path="name" name="名称"/]
    [@table.text path="classifyType.label" name="类型"/]
    [@table.dialog path="memo" name="备注"/]
    [@jsec.authBlock perms=["blockmanager"]]
    [@table.body name="操作";item]
        [@html.btngroup]
            [@html.href href="${base}${pathRoot}form.shtml?id=${item.id}" icon="fa-edit"/]
            [@html.href href="${base}${pathRoot}remove.shtml?id=${item.id}" class="" icon="fa-remove" confirm="是否删除分类？"/]
        [/@]
    [/@]
    [/@]
    [/@]
    [@frame.pagesBar data=datas prms=jweb.params("prm").url+jweb.sort().url!/]
[/@]